package com.example.springboot.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class TestService2 {

    @Autowired
    private TestService1 testService1;

    @Transactional
    public String test2() {
        System.out.println("执行test2()方法");
        return "执行test2()方法完毕";
    }


}